package agile.hustler.Characters;

public class Tank extends CharacterType {

	public Tank() {
	}

	public Tank(String N, int L) {
		name = N;
		level = L;
		charType = "TANK";

		actionPoint = 6 + 3 * level;
		luck = 2 + 2 * level;
		effekt = 5 + 3 * level;
		hp = 100 + 27 * level;



	}

	public String toString() {
		return charType + " " + name + " " + level + " " + actionPoint + " "
				+ luck + " " + effekt + " " + hp + " " + XP + " " + money + " ";
	}

	public String getHP() {
		return Integer.toString((int)hp);
	}
	
	public void updateLevel(int l){
		level 		+= 1;
		actionPoint += 3;
		luck 		+= 2;
		effekt 		+= 3;
		hp 			+= 27;
	}
/*
	public void fromString(String s) {
		Scanner scanner = new Scanner(s);
		scanner.useDelimiter(" ");
		while (scanner.hasNext()) {
			charType = scanner.next();
			name = scanner.next();
			level = Integer.parseInt(scanner.next());
			actionPoint = Integer.parseInt(scanner.next());
			luck = Integer.parseInt(scanner.next());
			effekt = Integer.parseInt(scanner.next());
			hp = Integer.parseInt(scanner.next());
			XP = Integer.parseInt(scanner.next());
			money = Integer.parseInt(scanner.next());
		}

	}
*/
}